Systems and methods of retrieving relevant information

ABSTRACT

The present invention provides systems and methods of retrieving the pages according to the quality of the individual pages. The rank of a page for a keyword is a combination of intrinsic and extrinsic ranks. Intrinsic rank is the measure of the relevancy of a page to a given keyword as claimed by the author of the page while extrinsic rank is a measure of the relevancy of a page on a given keyword as indicated by other pages. The former is obtained from the analysis of the keyword matching in various parts of the page while the latter is obtained from the context-sensitive connectivity analysis of the links connecting the entire Web. The present invention also provides the methods to solve the self-consistent equation satisfied by the page weights iteratively in a very efficient way. The ranking mechanism for multi-word query is also described. Finally, the present invention provides a method to obtain the more relevant page weights by dividing the entire hypertext pages into distinct number of groups.

[0001] The present invention relates to systems and methods for retrieving relevant information from a large collection of information such as that on the Internet and in particular the World Wide Web.

BACKGROUND

[0002] The World Wide Web (Web) is a rapidly growing part of the Internet. One group estimates it grows roughly seven million Web pages (pages) each day adding to an already enormous body of information. One study estimates there are more than two billion publicly available pages representing a growing fraction of the world's information. However, because of the Web's rapid growth and lack of central organization, millions of people cannot find specific information in an efficient manner.

[0003] To understand the problem, one must understand how the Internet and the Web are organized. The Internet is a communications infrastructure, which links computers throughout the world. It provides certain basic rules, termed protocols, by which computers can send data to each other. When a computer is ready to send the data, it uses software to break data into packets that conform to the Internet Protocol (IP) and the Transmission Control Protocol (TCP). IP governs how packets of information are sent over the Internet. TCP allows one computer to send a stream of data to another by breaking the data into packets, reassembling the packets at the receiving computer, and resending any missing packets. To do this they label each packet with a unique number and send it over the network. The receiving computer uses its Internet software to put the data in order. The data can be nearly anything: text, email, images, sounds, and software. The Web is the innovation of Tim Berners-Lee. See Berners-Lee, Weaving the Web (1999). His fundamental innovation was to provide a universal accessible hypertext medium for sharing information on the Internet. He understood that to become valuable the Web required many publishers. Because information constantly changes, it requires that any authorized person must be able to publish, correct, and read that information without any central control. Thus, there is no central computer governing the Web, and no single network or organization that runs it. To publish information, a person only needs access to a Web server, a computer program that shares Web resources with other computers. The person operating the Web server defines who contributes, modifies and accesses the information. In turn, to access that information, a person only needs a client computer system, and a computer program, such as a browser, which can access the server to read, edit, and at times correct the information displayed.

[0004] To be universally accessible, the Web is as unconstrained as possible. To allow computers to talk to each other everywhere, there are only a few basic rules: all resources on the Web, termed Web pages or pages, are identified by an address, termed a URL (Uniform Resource Locator). Once a page has a URL, it can be published on a Web server and found by a browser. For example, one URL is http://www.amazon.com/. The letters to the left of the double slashes tell the browser what protocol to use, here HTTP, to look up the page. The part to the right—www.amazon.com identifies the Web server where the page exists. HTTP, a computer language, specifies which computer talks first and how to talk in turn. HTTP supports hypertext, nonsequential text, which links the pages together. Hidden behind a hypertext word, phrase, symbol, or image is the destination page's URL, which tells the browser where to locate the page. The loosely linked sets of pages constitute an information web. Once the computers agree to this conversation, they need a common language so they can understand each other. If they use the same software, they can proceed, otherwise they can translate to HTML (Hypertext Markup Language), a computer language supporting hypertext, and the language most persons currently use to write pages. It should be understood, however, that other languages such as XML, SMGL, as well as Java and JavaScript could be used to write pages.

[0005] In short, the Web is all information accessible to computers, where a URL identifies each unit of information. The Web has no central index to the pages, such as that contained in a public library. Instead, the pages have addresses and are loosely organized by links to each other. Thus, the Web provides little structure to support retrieval of specific information. Instead, the Web creates a hypertext space in which any computer can link to any other computer.

[0006] Practically any computer can display pages through a browser such as Microsoft Internet Explorer or Netscape Communicator once connected to the Internet. Upon request the browser will fetch the page, interpret the text and display the page on the screen. The page may contain hypertext links, which are typically represented by text or an icon that is highlighted, underlined, and/or shown in a different color. The text or icon is referred to as anchor text. To follow the link, the user will move the cursor over the anchor text and click the mouse.

[0007] Several techniques exist for retrieving specific information. If the URL of the page is known, browsing the page suffices. If the Web site is known, one can go to the Web site map, search the site, or follow the links. This often works when the information is known to exist within a Web site. However, if the URL and site are unknown, finding information requires other techniques. Two known techniques are Web directories and search engines. For example, Yahoo! classifies information in a hierarchy of subjects, such as Computer & Internet and Education. One chooses a category, then successive subcategories that seem likely to lead one to the information sought. But the categories are not mutually exclusive so multiple paths appear in the hierarchy. Once a category is selected, the previous category disappears forcing one to retrace one's steps to consider the other paths not taken. The further the search goes into the hierarchy, the more difficult it is to remember what other paths could be explored. To assist in searching the categories, Yahoo! provides phrase searching, and logical operators such as AND, OR, and NOT to specify which keywords must be present or absent in the pages, truncation of keywords, name searching, and field searching, e.g., in the title or URL.

[0008] By late-1999, Yahoo! reported indexing more than 1.2 million pages, but this is relatively small compared to the Web. In late 1999, Yahoo! had about 100 editors compiling and categorizing Web sites, but even if this number greatly increases, Yahoo! is not expected to cover the entire Web.

[0009] Web search engines are an important means of information retrieval of the pages. Search engines such as Google, FAST, AltaVista, Excite, HotBot, Infoseek, and Northern Light have fuller coverage of the Web. In Searching the World Wide Web, Science 280, 98-100 (1998), Lawrence and Giles reported that the major search engines covered less than half of the 320 million pages. More recently, Google and FAST reported indexing over a billion pages. However, as search engines increase their coverage, they exacerbate an existing problem.

[0010] Search engines pull up all pages meeting the search criteria, which can overwhelm the searcher with thousands of irrelevant pages. Once they arrive, the searcher must review them one page at a time to find the relevant ones. Even if they could download many pages, average searchers are not always willing to take a look at more than a display of pages. Therefore it is important to present the most relevant pages to the searchers at the top of the list, say in first twenty results.

[0011] Because thousands of pages may outwardly match the search criteria, the major search engines have a ranking function that will rank higher those pages having certain keywords in certain locations such as the title, or the Meta tag, or at the beginning of a page. This does not, however, typically put the most relevant page at the top of the list; much less assess the importance of the page relative to other pages. Moreover, relying solely on the content of the page itself—including the Meta tags which do not appear when displayed—to rank the page can be a major problem to the search engine. A web author can repeat “hot” keywords many times, termed spamming, for example, in the title or Meta tags to raise the rank of a given page without adding value.

[0012] Unlike standard paper documents, the Web includes hypertext, which links one page to another and provides significant information through the link structure. For example, the inbound links to a page help to assess the importance of the page. Because some of the inbound links originate from authors other than the one who wrote the page being considered, they tend to give a more objective measure of the quality or importance of the pages. By making a link to other page, the author of the originating page endorses the destination page. Thus, to make your page highly regarded in this kind of ranking system, you need to convince a lot of other people to put links to your page in their pages.

[0013] Simple counting of inbound links, however, will not tell us the whole story. If a page has only one inbound link, but that link comes from a highly weighted page such as the Yahoo! home page, the page might be reasonably ranked higher than a page that has several inbound links coming from less visited pages.

SUMMARY OF THE INVENTION

[0014] The present invention relates to systems and methods of information retrieval. In one embodiment, a search engine and a method produces relevant search results to keyword queries. The search engine includes a crawler to gather the pages, indexer(s) to extract and index the URLs of pages with keywords into indexed data structure(s), and ranks hypertext pages based on intrinsic and extrinsic ranks of the pages based on content and connectivity analysis. The page weights can be calculated based on an iterative numerical procedure including a method for accelerating the convergence of the scores. The search engine can also rank pages based on scores of a multi-keyword query. The ranking scores can be based on using the entire set of hypertext pages and/or a subset based on topic or the like.

[0015] One embodiment of the present invention provides a general-purpose search engine a method to rank the pages without limitation to topic according to the quality of individual pages. This embodiment of the present invention enables the search engine to present the search results in such a way that the most relevant results appear on the top of the list.

BRIEF DESCRIPTION OF THE DRAWINGS

[0016]FIG. 1 illustrates an embodiment of the architecture of the search engine.

[0017] FIGS. 2A-2C illustrate embodiments of the Web page database.

[0018]FIG. 3 illustrates the extrinsic rank and the intrinsic rank of a Web page.

[0019]FIG. 4 the architecture of the ranker of the search engine.

[0020]FIG. 5 illustrates the page weight generator of the ranker.

[0021]FIG. 6 illustrates the architecture of the mixer of the page weight generator.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] The present invention relates to retrieving relevant pages from hypertext page collections. For conciseness, we describe a search engine for collecting, storing, indexing, and ranking Web pages in response to searcher queries. However, one of ordinary skill will understand after review of the specification that the search engine can be used on many other collections of hypertext pages.

[0023]FIG. 1 illustrates one embodiment of a search engine 10, which includes a crawler 12 to fetch pages from the Web 13. In one embodiment, the search engine 10 is written in C++, runs on the Microsoft 2000 Server operating system, preferably in parallel using suitable Intel Pentium processors. It should be clear, however, that it is not essential to the invention that this hardware and operating system be used, and other hardware and operating systems can be used such as Solaris or Linux. Preferably, we run multiple instances of the crawler 12 to increase its capacity to crawl and re-crawl enormous hypertext document collections such as pages on the Web. The crawler 12 stores the fetched pages in a Web page database 14, which includes data structures optimized for fast access of the fetched pages as explained below in connection with FIGS. 2A-2C.

[0024] The crawler 12 also sends the fetched pages to a link extractor 16, which finds the outbound links in the pages and sends the source and destination URLs of the links to a URL management system (UMS) 18. The UMS 18 assigns an identification number to each URL and maintains a database of identification number and URL pairs preferably in a hash table. The UMS 18 checks the URLs one by one, and if a new URL is found, it is sent to the crawler 12 to be written in the Web page database 14 preferably through a rate controller 20. The rate controller 20 buffers the URLs to be crawled, and sends the URLs to the crawler 12 only when the Web site providing the new page has not received a crawling request for a certain amount of time. This ensures a Web site does not get excessive crawling requests.

[0025] The search engine 10 provides an indexing function in the following manner. The anchor text and link extractor 22 writes the source URL identification number, the destination URL identification number, and associated anchor text to the anchor text and link database 24. Anchor text is a section of text, an icon, or other element in a page that links to another page. The indexer 26 extracts the anchor text from the anchor text and link database 24 and parses the keywords from the Web page database 14 and generates an indexed database 28. The indexer 26 stores each keyword and its associated list of URL identification numbers for fast retrieval.

[0026] The search engine 10 ranks the pages in the following manner. The ranker 30 reads the link structure from the anchor text and link database 24, calculates the page weight, reads the indexed words from the indexed database 28, and calculates the rank value for each keyword and page pair. The ranker 30 stores the page weight and the rank values in the indexed database 28. The ranker 30 also builds a ranked database 32 as a subset of the indexed database 28 for a single keyword query.

[0027] One purpose of the search engine is to respond to a search query with the search results in order of relevancy. The ranker 30 measures the relevancy of each page by examining its content, its page weight, the weight of the links to the page, and the weight of the linking pages. The words, the font size, and the position of the words define the content of the page. For example, the ranker 30 compares the font size of each word relative to other words in the page to determine how important is the word. The position of the word in the page also may matter. For example, if the word is in the title, it may be desirable to give it more weight than if the word appears at the bottom of the page. Page weight is the probability of visitors viewing the page. The ranker 30 determines the intrinsic rank of the page by multiplying the content score by the page weight.

[0028] The ranker 30 measures the weight of the links to the page by examining the text associated with the link such as the anchor text. For example, the ranker 30 gives more credit to a link from a page with the keyword in its anchor text. The ranker 30 determines the extrinsic rank of the page by multiplying the link weight by the page weight.

[0029] When a query server 34 receives a query from a searcher 36, it collects the relevant pages from the ranked database 32 and indexed database 28. Given the huge size of these databases, the pages are stored across multiple instances of search nodes. Each search node in the query server 34 collects a fixed number of the most relevant results from the databases it manages and returns them to query server 34. The query server 34 then sorts and ranks the results from these different nodes and presents the most relevant results, typically ten, at a time.

[0030] FIGS. 2A-2C illustrate that the data structures of the Web page database 14 typically need to accommodate different size pages. As shown in FIG. 2A, pages 1-4 and 6 show that most compressed pages are roughly the same size, that is, not exceeding, for example, 6K bytes, while page 5 represents that some are larger. In FIG. 2B, the data structure stores pages adjacent to each other in a record file to save storage space, and provides an index file containing the starting address of each page. This requires the Web page database 14 engage in two steps for retrieving a page. In FIG. 2C, the preferred data structure leverages the fact that many of the compressed pages are below a threshold, e.g., 6K bytes, and stores those pages in a fixed record large enough to contain 85% of the pages. If the page is smaller, the fixed record has some amount of empty space. If the page is larger, the Web page database 14 stores as much of the page as possible in the fixed record and the rest in a record file. Thus, the Web page database 14 requires just one step to retrieve 85% of the pages, greatly reducing access time. One of ordinary skill would understand that it is neither essential to set the threshold at 85% of the pages, nor set the size of the fixed record to 6K bytes. To conserve storage space, a known compression technique such as the Microsoft Foundational Class (MFC) zlib library can compress the pages by 4 to 1 or 3 to 1.

[0031]FIG. 3 illustrates how the ranker 30 determines the relevancy of a page by a combination of the intrinsic rank and extrinsic rank. Suppose we want to rank the relevancy of page a to a search query with keyword K.

[0032] We calculate intrinsic rank by looking at the content of page a. The author of page a can repeat the keyword K many times to claim page a is relevant to keyword K, but this relatively high content score can be adjusted by the weight of page a, that is, the importance of page a as indicated by other pages. Thus, the intrinsic rank of page a for keyword K is defined as the content score of page a multiplied by the page weight of the page a.

[0033] We calculate the extrinsic rank of page a by looking at the inbound links shown here as originating from page b and page c. Page b is shown as having one outbound link so its link weight is 1.0, while page c has two outbound links, which reduces each link weight to 0.5. The anchor weight for keyword K is obtained for each of these links. In one embodiment, anchor weight is equal to link weight if the keyword K is found in the anchor text and zero if otherwise. In another embodiment, anchor weight can have smaller value than link weight if the keyword K is not found in the anchor text but related to or in the vicinity of the anchor text. The extrinsic rank is defined as the sum of the anchor weight multiplied by the page weight of all the pages shown here as page b and page c with inbound links to page a.

[0034] The overall rank of page a can be then calculated by combining the intrinsic rank and extrinsic rank in the following formula:

WR(K;a)=IR(K;a)+e·ER(K;a)

[0035] Where the variables are defined as follows:

[0036] WR(K;a): Rank of page a for keyword K.

[0037] IR(K;a): Intrinsic rank of page a for keyword K.

[0038] ER(K;a): Extrinsic rank of page a for keyword K.

[0039] The adjustable parameter e determines the relative importance of the extrinsic rank with respect to the intrinsic rank. For instance, e=5 can be used but the value is not essential to the present invention.

[0040] Intrinsic Rank

[0041] Intrinsic rank is the measure of the importance of a page for a given keyword as claimed by the author of the page. Importance can be measured by examining the content of the page, e.g., the appearance of the keyword in the title or headings or body of the text, but this may be misleading. Some websites exaggerate the importance of their pages by repeating “hot” keywords endlessly without adding any value to the content of the page. We respect the author's claim as much as the page is worth. If the page is highly respected and frequently cited, we value author's claims more, and if otherwise, less. One solution is to use the page weight:

IR(K;a)=C(K;a)·PW(a)

[0042] Here C(K;a) represents the content score of page a for keyword K and PW(a) represents the page weight for page a.

[0043] Content Score

[0044] The content score can be calculated in many ways. One embodiment is as follows:

C(K;a)=t·T(K;a)+p·P(K;a)+u·U(K;a)

[0045] Where the variables are defined as follows:

[0046] T(K;a)=1 if keyword K is found in the title of the page a and 0 otherwise.

[0047] P(K;a) represents the frequency of the keyword K in the plain text of page a. In one embodiment, P(K;a) is a constant, which prevents spamming. By plain text we mean text in the page excluding the title.

[0048] P(K;a)=1 if keyword K is found in URL and 0 otherwise.

[0049] Parameters t, p and u represent the relative importance of the title, the plain text, and the URL field.

[0050] Page Weight

[0051] Page weight of a page is defined as the probability for a user—who travels on the Web endlessly in a random but well-defined manner—to visit the page. If a page has high probability to be visited by the user, the page is more likely to be a well-known page and to have many links from other pages.

[0052] In one embodiment, we can calculate the page weight by adding a hypothetical page, termed a page weight reservoir to the collection of pages. The page weight reservoir has a bi-directional link to each page in the collection. The page weight reservoir acts as a sink for pages having no outbound links (terminal pages) and a source for pages having no inbound links. The page weight reservoir also solves the problem of pages pointing only to each other producing a loop, which would trap the user, and ensures the conservation of total page weight in the collection of pages.

[0053] The user complies with certain rules in moving from page to page. First, at each step, the user chooses an outbound link randomly and follows it to other pages. Second, if the user comes to the page weight reservoir, the user immediately chooses an outbound link randomly to the other pages. Consequently, each move from page to page is independent from prior history and it only depends on the current page.

[0054] Let LW(a→b) denote the link weight, that is, the probability of choosing a particular outbound hyperlink to page b out of all outbound links originating from page a. The probability that the user visits page a at step n after visiting page b through the link b→a is LW(b→a)·P_(n−1) (b), where P_(n−1) (b) denotes the probability that the user visits page b at step n−1. Thus, we can write the probability of the user visiting page a at step n of the random walk, P_(n) (a), by collecting the contributions from all other pages as follows: ${P_{n}(a)} = {\sum\limits_{b}{{{LW}\left( b\rightarrow a \right)} \cdot {P_{n - 1}(b)}}}$

[0055] This equation only applies to actual pages even though the summation variable b includes the page weight reservoir R.

[0056] We can write the probability for the user to make a random jump via the page weight reservoir R as follows: ${P_{n}(R)} = {\sum\limits_{a \neq R}{{{LW}\left( a\rightarrow R \right)} \cdot {P_{n}(a)}}}$

[0057] Note that the same iteration indices n are used on both sides of the equation, unlike the equation for the actual pages.

[0058] If the user continues to move from page to page, eventually the probability of visiting page a will reach an equilibrium value. Page weight of page a is defined as this equilibrium probability: ${{PW}(a)} = {\lim\limits_{n->\infty}{P_{n}(a)}}$

[0059] Thus, we have the final equation of page weight: ${P\quad {W(a)}} = {\sum\limits_{b}{L\quad {{W\left( b\rightarrow a \right)} \cdot P}\quad {W(b)}}}$

[0060] Note that the sum includes the contribution from the page weight reservoir R.

[0061] Since the page weight is the probability for a user to visit a page, it can also represent the importance of each page. A highly popular site, such as the Yahoo! home page is more likely to have higher page weight than less popular and obscure pages.

[0062] Link Weight

[0063] Link weight is the probability for the user to choose a particular outbound hyperlink out of all outbound links originating from a page. Link weight also represents the importance of the link. In one embodiment, all link weights from a given page a can have a uniform value corresponding to 1/N_(out) (a), where N_(out) (a) is the total number of links outbound from page a, including the extra link to the page weight reservoir. Therefore, N_(out) (a) is greater than or equal to one for every page and there is no terminal page in the collection. In another embodiment, not every outbound link is equally important. Thus, we give each link a different weight depending on several factors such as the offset of the link (i.e., position on the page) and the size of the paragraph where the link is located. A link readily visible upon the loading of a page can have a higher link weight than one visible only after scrolling down. The search engine can also assign different weights for external links—links that point to pages in other domain—and internal links—links that point to pages in the same domain. Many times the internal links serve as navigational tools rather than leading to new subjects represented by the anchor texts. The sum of all link weights from a page equals one: ${\sum\limits_{b}{L\quad {W\left( a\rightarrow b \right)}}} = 1$

[0064] If there is no link from one page to another, the corresponding link weight is zero.

[0065] Extrinsic Rank

[0066] Extrinsic rank is a measure of the importance of a page for a given keyword as indicated by other pages. It measures the authoritativeness of a page on a given topic or keyword as regarded by public. Once the page weight is obtained the extrinsic rank can be calculated for each keyword and page pair. Extrinsic rank is defined as follows: ${E\quad {R\left( {K;a} \right)}} = {\sum\limits_{b}{A\quad {{W\left( {K;\left. b\rightarrow a \right.} \right)} \cdot P}\quad {W(b)}}}$

[0067] Here, AW(K;b→a) is the anchor weight. It represents the weight given to anchor text found in page b linking to page a for a given keyword K.

[0068] The equation multiplies the anchor weight of a link by the weight of the originating page and sums each product for all fetched pages. The anchor weight can be set in many different ways. The anchor text for a given link is useful for setting the anchor weight. We can also consider the related text of the page, which is either nearby the anchor text and/or related to the same topic. Thus, related headings, text in the vicinity of the anchor, and other anchor text on the same page may be useful for setting the anchor weight.

[0069] In one embodiment, AW(K;b→a) =LW(b→a) if the keyword is in the anchor text and zero if not. In another embodiment, we assign anchor weight less than or equal to the link weight if the keyword is found in text nearby or related to the anchor text. Thus, related headings, text in the vicinity of the anchor, and other anchor text on the same page can be used to set the anchor weight.

[0070] Multi-Keyword Queries

[0071] In another embodiment, the ranker 30 calculates the rank of pages for multi-keyword queries in the following manner. For simplicity, let's consider two-keyword query, K₁,K_(2.)

[0072] The multi-keyword rank value is as follows:

WR(K ₁ ,K ₂ ;a)=IR(K ₁ ,K ₂ ;a)+e·ER(K ₁ ,K ₂ ;a).

[0073] Where the intrinsic rank for the multi-keyword query is obtained as,

IR(K ₁ , K ₂ ; a)=C(K ₁ , K ₂ ; a)·PW(a).

[0074] Here C(K₁,K₂;a) is the multi-keyword content score defined as

C(K ₁ ,K ₂ ;a)=C(K ₁ ^ K ₂ ;a)·PX(K ₁ ,K ₂ ;a)

[0075] Where PX(K₁,K₂;a) is the proximity value between two keywords, K₁ and K₂, in page a. The proximity value has the maximum value of one when K₂ immediately follows K₁ and decreases to a minimum value as the distance between two keywords grows. The proximity value decreases to its minimum, such as 0.1, when two keywords are separated by more than 10 words, and K₁^ K₂ represents the Boolean AND operation of the two keywords. For computing the extrinsic rank, ER(K₁, K₂; a), we need to also introduce the concept of partial extrinsic rank as explained in the following section.

[0076] The partial extrinsic rank is defined as: ${P\quad E\quad {R\left( {{U\quad A};a} \right)}} = {\sum\limits_{c}{A\quad {{W\left( {{U\quad A};\left. c\rightarrow a \right.} \right)} \cdot P}\quad {W(c)}}}$

[0077] Where page c represents all pages, which contains link to page a with the identical anchor text, UA. In other words, we collect the contributions to extrinsic rank from all pages with identical anchor text into one partial extrinsic rank, which saves computational resources when calculating proximity value. Thus, the partial extrinsic rank is very useful for a multi-keyword query. In another embodiment, partial extrinsic rank can be used for a single keyword query and will be the sum of partial extrinsic ranks over the identical anchor text: ${E\quad {R\left( {K;a} \right)}} = {\sum\limits_{U\quad {A{(K)}}}{P\quad E\quad {R\left( {{U\quad {A(K)}};a} \right)}}}$

[0078] Where UA(K) denotes the identical anchor text containing keyword K.

[0079] In one embodiment, the ranker 30 uses the partial extrinsic rank to obtain the extrinsic rank for a multi-keyword query in the following manner: ${E\quad {R\left( {K_{1},{K_{2};a}} \right)}} = {\sum\limits_{U\quad {A{({K_{1},K_{2}})}}}{P\quad E\quad {{R\left( {{U\quad {A\left( {K_{1},K_{2}} \right)}};a} \right)} \cdot P}\quad {X\left( {K_{1},{K_{2};{U\quad {A\left( {K_{1},K_{2}} \right)}}}} \right)}}}$

[0080] UA(K₁,K₂) is the identical anchor text containing both keywords K₁ and K₂. PX(K₁,K₂;UA(K₁,K₂)) is the proximity value of the keywords K₁ and K₂ within the identical anchor text UA(K₁,K₂). To facilitate the extrinsic rank calculation of multi-keyword query, the indexed database 28 contains a field to store the partial extrinsic rank for each identical anchor text and stores all offset for each keyword in the anchor text. Therefore, to calculate the extrinsic rank for multi-word query, we can find the entry for K₁ and K₂ in indexed database 28. For each page there will be a list of identical anchor text with its identification number, the offset of the keyword in the anchor text, and the partial extrinsic rank. From the identical anchor text identification number and offset, the ranker 30 can obtain the proximity value and it collects the product of partial extrinsic rank and proximity value.

[0081] In another embodiment, the ranker 30 associates a list of related words for selected broad topic keywords, such as “science” or “sports”. In this way we can also solve the problem of synonyms, such as finding the pages for “automobile” when querying with “car.”

[0082] The related words table can be as follows: Word Related words Automobile {<auto, 1.0>, <car, 1.0>, <truck, 0.9>,. . . } Sports {<football, 1.0>, <basketball, 0.9>, <tennis, 0.9>,. . .} . . . . . .

[0083] The numbers in the table will be used for the anchor weight. Using these tables, when we calculate the extrinsic rank for “automobile”, for example, we can collect the keyword “car” at the same time. Further, the anchor text containing “truck” contributes, but with less weight.

[0084] As illustrated in FIG. 4, the ranker 30 includes a link structure sorter 38, which extracts records of the link structure from the anchor text and link database 24, and sorts the records in the order of source URL identification number. The sorted records are written in the link database 40. The page weight generator 42 reads the link database 40 and calculates the page weight for the fetched pages and stores them in the page weight database 43. The intrinsic rank generator 44 reads the indexed database 28 to calculate the content score and multiplies it with the page weight read from the page weight database 43 to calculate the intrinsic rank for a given keyword and URL pair. The intrinsic rank generator 44 reads one keyword at a time from the indexed database 28. The indexed database 28 stores a set of records where each record includes the URL identification number and bit fields to indicate the presence and proximity of a given keyword in the title, the anchor text of the inbound link, text related to the anchor text as described earlier, in the plain text, and/or in the URL of the page. Another bit field of the record can be set when the URL is the top-level of a given host.

[0085] The partial extrinsic rank generator 47 reads several input files: the anchor text and link database 24, the indexed database 28, and the page weight database 43, and calculates the partial extrinsic rank values for each identical anchor text and URL pair. The resulting partial extrinsic rank is written back to the indexed database 28 to be used for extrinsic rank for single and multi-word query.

[0086] The extrinsic rank generator 45 collects the partial extrinsic rank for each keyword and URL pair. In the case of a multi-keyword query, the extrinsic rank generator 45 collects all partial extrinsic ranks for identical anchor text containing the keywords.

[0087] Intrinsic and extrinsic rank values are sent to the merger module 46 to be combined into the final rank. The merger module 46 updates the rank of each URL in the indexed database 28. The merger module 46 collects the top-ranked URLs (e.g., top 400 URLs) and writes them in the ranked database 32 in descending order.

[0088]FIG. 5 illustrates the page weight generator 42 of the ranker 30. The function 50 initializes the page weight vector X to a constant such as 1. The connectivity graph G 48, representing the link structure of all of the fetched pages, is constructed from the link database 40. The function 52 takes the connectivity graph G 48 and the new input page weight vector X 54 and computes the output page weight vector Y. The function 56 tests for convergence. If the output page weight vector Y is satisfactorily close to the input page weight vector X within a predetermined tolerance, typically in the order of 10⁻⁶, then the iteration stops and the final page weight vector is written to the page weight database 43. If the convergence is not achieved, the function 56 passes the input and output page weight vectors, X and Y, to the mixer module 58, which mixes them to generate the new input page weight vector X 54, and the iterative process repeats until the convergence is reached. In function 56, we use a normalized error function to measure the convergence as follows: $e = \frac{\sum\limits_{i}\left( {y_{i} - x_{i}} \right)^{2}}{\left( {\sum\limits_{i}x_{i}} \right)^{2}}$

[0089] Where x_(i) and y_(i) represent the components of the input page weight vector X and output page weight vector Y.

[0090] As explained below, in one embodiment the extended Anderson Mixing method calculates the page weights iteratively as described in V. Eyert, A Comparative Study on Methods for Convergence Acceleration of Iterative Vector Sequence, J. Comp. Phys. 124, 271-285 (1996), which disclosure is incorporated by reference. By analyzing the history of the mixing and the response of the system during a few past iterations, the system teaches itself to construct the next input vector in the most efficient way. The mixing scheme can achieve the same accuracy in about seven iterations for what appears to take others more than 200 iterations.

[0091] The page weight for the fetched pages can be found by solving the following matrix equation:

X=G·X

[0092] X is a N−1 column matrix representing the page weights for all N fetched pages. N×N square matrix G represents the connectivity graph. The off-diagonal elements of G represent the link connectivity between the pages. The diagonal elements of the matrix G are all equal to zero. The solution vector X is an eigenvector of the matrix G with the eigenvalue one. In principle, the solution vector X can be obtained from solving this matrix equation exactly. In dealing with the World Wide Web, however, the number of total pages N is very large—order of hundred of millions or billions—and solving this matrix equation exactly is impractical in terms of computer memory and CPU time. Thus, we employ the iterative method. We start with a guess for X in the right-hand-side to obtain X in the left-hand-side. In general, the input and output X will not be same and we combine the input and output X to prepare new input X and iterate this process until they become self-consistent within the preset tolerance.

[0093]FIG. 6 illustrates one embodiment of a mixer module 58. The function 56 passes the input page weight vector X 57 and output page weight vector Y 59 to the mixer module 58 when convergence is not achieved. A function 60 calculates the residual vector R=Y−X. When the residual vector R has negligible magnitude, such as 10⁻⁶ it signifies satisfactory convergence and the iteration can stop. The mixer module 58 includes a function 62 which calculates the general residual vector, Q, which is the linear combination of the residual vectors of current and previous iterations: $Q = {R + {\sum\limits_{j = 1}^{M}{b_{j}\left( {R^{j} - R} \right)}}}$

[0094] Here, R is the residual vector of current iteration and R^(J) is the residual vector of j-th previous iteration. M is the history level and is typically 3 or 4. The coefficients b_(J) are determined by the requirement that they yield that particular linear combination, which minimizes the magnitude of the general residual vector, <Q|Q >. Minimizing with respect to the coefficients b we obtain the linear equation system, which can be solved using conventional matrix algebra. Once Q is obtained, the function 64 calculates the new input page weight vector can be obtained using:

X ^(new) =X+βQ

[0095] Here β is a constant parameter and the value of 0.5 works usually well. In function 66, the mixer module 58 saves the current residual vector R 60 to the residual vector database 68 to be used for next iteration. If there are already M residual vectors in the database 68, we discard the oldest residual vector.

[0096] In another embodiment, the present invention provides a method for assigning the ranking scores for multi-keyword query. When user enters more than one keyword for query, we combine the ranking scores for each keyword to obtain the final ranking scores. We give slightly more weight to the first word and the weight gets smaller for following words until it levels off at about 4th word. In one embodiment, the weight for i-th keyword, w_(i), is obtained as n follows: $w_{i} = {f_{i}/{\sum\limits_{j = 1}^{n}f_{j}}}$

f _(i) =f ₀+(1−f ₀)e ^(−i/σ)

[0097] Here n represents the number of keywords in the query. The constant parameters f₀ and σ has typical values of 0.5 and 1, respectively.

[0098] In another embodiment, the present invention provides a method for calculating ranking scores by dividing the entire hypertext pages into distinct number of groups. The page weight can be refined further by classifying pages into several distinct groups such as “Art”, “Education”, “Reference”, etc. Once the pages are classified, the page weights can be calculated in the same manner described above within these groups. The page weight will be more relevant for the given topic. 

What is claimed:
 1. A computer-implemented method of ranking the relevancy of a collection of hypertext pages to a keyword-based query, comprising: calculating an intrinsic rank of a page; calculating an extrinsic rank of the page; and calculating the rank of the page by combining the intrinsic rank and the extrinsic rank.
 2. The method of claim 1, wherein the intrinsic rank is a function of the content score and the page weight of the page.
 3. The method of claim 2, wherein the content score is a function of the frequency, location, and/or font size of a keyword in the page.
 4. The method of claim 2, wherein the page weight is defined as the probability of a user visiting the page when traveling in the collection of hypertext pages in a random fashion.
 5. The method of claim 2, wherein the page weight is obtained as the sum of the product of a link weight of each inbound link to the page and the page weight of the originating page.
 6. The method of claim 2, wherein the page weight is computed by the following steps of: constructing a connectivity graph, which represents the collection of hypertext pages and the link structure between the pages; adding a page weight reservoir with bidirectional links to and from each of the pages in the collection of hypertext pages; and summing all of the products of each inbound link weight with the page weight of the originating page providing the inbound link.
 7. The method of claim 2, further comprising computing the page weights by the following steps of: initializing a page weight vector to a constant; constructing a connectivity graph representative of the link structure of the collection of pages; computing an output page weight vector from the input page weight vector and the connectivity graph; and comparing the output page weight vector with the input page weight vector for convergence, and if convergence is reached, writing the output page weight vector in a page weight database, and if not, mixing the input and output page weight vectors to generate a new input page weight vector and repeating until convergence is reached.
 8. The method of claim 5, wherein the link weight is defined as the probability of a user randomly choosing the link to visit other pages when traveling in the collection of hypertext pages.
 9. The method of claim 5, wherein the link weight of the inbound links has a uniform value corresponding to the reciprocal of the total number of links outbound from an originating page.
 10. The method of claim 5, wherein the link weight has a variable value, which depends on the number of outbound links, the offset of the link, the size of the paragraph where the link is located, and/or whether the link is an external or internal link.
 11. The method of claim 1, wherein the extrinsic rank is a function of the anchor weight and the page weight of the pages providing inbound links to the page.
 12. The method of claim 1, wherein the extrinsic rank is obtained by summing the products of the anchor weight and the page weight of the originating page providing each inbound link.
 13. The method of claim 11, wherein the anchor weight is a function of the inbound link weights and the keyword being present in the anchor text, in the vicinity of the anchor text, or in text related to the topic of the anchor text.
 14. The method of claim 11, wherein the page weight is defined as the probability of a user randomly visiting a page in the collection of hypertext pages.
 15. The method of claim 11, wherein the page weight is obtained by summing the products of the link weight of each inbound link to the page and the page weight of the originating page providing the inbound links.
 16. The method of claim 11, wherein the page weight is computed by the following steps of: constructing a connectivity graph, which represents the collection of hypertext pages and the link structure between the pages; adding a page weight reservoir with bi-directional links to and from each of the pages in the collection of hypertext pages; and summing all of the products of each inbound link weight with the page weight of the originating page providing the inbound link.
 17. The method of claim 11, further comprising computing the page weights by the following steps of: initializing a page weight vector to a constant; constructing a connectivity graph representative of the link structure of the collection of pages; computing an output page weight vector from the input page weight vector and the connectivity graph; and comparing the output page weight vector with the input page weight vector for convergence, and if convergence is reached, writing the output page weight vector in a page weight database, and if not, mixing the input and output page weight vectors to generate a new input page weight vector and repeating until convergence is reached.
 18. The method of claim 15, wherein the link weight is defined as the probability of a user randomly choosing the link to visit other pages when traveling in the collection of hypertext pages.
 19. The method of claim 15, wherein the link weight of the inbound links has a uniform value corresponding to the reciprocal of the total number of links outbound from an originating page.
 20. The method of claim 15, wherein the link weight has a variable value, which depends on the number of outbound links, the offset of the link, the size of the paragraph where the link is located, and/or whether the link is an external or internal link.
 21. The method of claim 1, wherein the collection of hypertext pages is fetched from the Web.
 22. A computer-implemented method of ranking a collection of hypertext pages, comprising: calculating the intrinsic rank of a page for a multi-keyword query; calculating the extrinsic rank of the page for the multi-keyword query; and calculating the rank of the page in the collection of hypertext pages by combining the intrinsic rank and the extrinsic rank.
 23. The method of claim 22, wherein the intrinsic rank is a function of content score and the page weight.
 24. The method of claim 23, wherein the content score is a function of the proximity value of the multi-keywords and of the frequency, location, and/or font size of the multi-keywords in the page.
 25. The method of claim 22, wherein the extrinsic rank of the page is a function of the partial extrinsic ranks and the proximity value of the multi-keywords.
 26. The method of claim 25, wherein partial extrinsic rank is a function of the anchor weight and the page weight of the pages with identical anchor text.
 27. The method of claim 25, wherein partial extrinsic rank is computed by summing the products of the anchor weight and the page weight of the pages with identical anchor text.
 28. A Web search engine, comprising: a Web page database; a crawler to fetch pages from the Web and store the pages in the Web page database; a link extractor to extract link information from the pages; a URL management system to assign an identification number to the URL of each page, and store the identification number and URL pairs in the Web page database and send new URLs to the crawler to be retrieved from the Web; anchor text and link database; an anchor text and link extractor to extract the anchor text and the link information from the pages and store in the anchor text and link database; indexed database; an indexer to parse keywords from the pages and store the keyword and URL identification pairs in the indexed database; and a ranker to rank a page based on intrinsic rank and extrinsic rank of the page.
 29. The Web search engine of claim 28, wherein the ranker determines the intrinsic rank from content information in the indexed database and the page weight computed from the link information in anchor text and link database, and the extrinsic rank from the anchor text information in the anchor text and link database and the computed page weight.
 30. The Web search engine of claim 28, wherein the ranker determines the intrinsic rank of the page based on the content score and the page weight.
 31. The Web search engine of claim 28, wherein the ranker determines the extrinsic rank of the page based on the anchor weight of each inbound link and the page weight of the originating page.
 32. The Web search engine of claim 28, wherein the ranker determines the anchor weight based on the link weight and the keyword being present in the anchor text or related text.
 33. The Web search engine of claim 28, wherein the ranker calculates the intrinsic rank and extrinsic rank of a page for a multi-keyword query, wherein the intrinsic rank is a function of content score and the page weight, the extrinsic rank of the page is a function of the partial extrinsic ranks and proximity values.
 34. The Web search engine of claim 28, further comprising a page weight generator and a page weight database, computing page weights by initializing a page weight vector to a constant, constructing a connectivity graph representing the link structure of the fetched pages, computing an output page weight vector from the input page weight vector and the connectivity graph, and comparing the output page weight vector with the input page weight vector and if convergence is reached, writing the output page weight vector in a page weight database, and if not, mixing the input and output page weight vectors to generate a new input page weight vector and repeating until convergence is reached.
 35. A computer system for ranking search results from a query on a collection of hypertext pages, comprising: a crawler to fetch pages from the collection of hypertext pages; a link extractor to extract page locator information from the fetched pages; a page locator management system for storing and retrieving the page locator information; a page database to store the pages; an indexer to parse keywords from the pages and store the keyword page locator pairs in the indexed database; an anchor text and link extractor to extract the anchor text and link structures from the pages; an anchor text and link database, wherein the anchor text and link extractor writes the anchor text and link structures into the anchor text and link database; and a ranker to assign a rank value to a page based on intrinsic and extrinsic rank.
 36. The system of claim 35, wherein the ranker assigns an intrinsic rank to the page based on a combination of content score and page weight.
 37. The system of claim 35, wherein the ranker assigns the content score to the page for a keyword based on a combination of location, frequency, and/or font size of the keyword in the page.
 38. The system of claim 35, wherein the ranker assigns a page weight to the page as the probability of a searcher visiting the page when traveling in the collection of hypertext pages in a random fashion.
 39. The system of claim 35, wherein the ranker assigns a uniform value corresponding to the reciprocal of the total number of links outbound from an originating page to link weight.
 40. The system of claim 35, wherein the ranker assigns link weight based on location of the link.
 41. The system of claim 35, wherein the ranker assigns an extrinsic rank to the page for a given keyword as a combination of anchor weight of the links from other pages and the page weight of referring pages.
 42. The system of claim 35, wherein the ranker assigns a rank value to a page for a multi-keyword query as a combination of intrinsic rank and extrinsic rank for the multi-keyword.
 43. The system of claim 35, wherein the ranker assigns an intrinsic rank to a page for a multi-keyword query as a combination of content score and page weight.
 44. The system of claim 35, wherein the ranker assigns a content score to a page for a multi-keyword query as a combination of content score based on intersection of the given keywords and proximity value.
 45. The system of claim 35, wherein the ranker assigns a partial extrinsic rank for each variation of identical anchor text.
 46. The system of claim 35, wherein the ranker assigns a extrinsic rank to a page for a multi-keyword query as a combination of partial extrinsic rank of identical anchor text and proximity values in each anchor text.
 47. The system of claim 35, wherein the ranker obtains a link connectivity graph of the pages.
 47. The system of claim 35, wherein the ranker obtains the rank values from the link connectivity graph.
 48. The system of claim 35, wherein the ranker calculates the page weight by iterative numerical procedure.
 49. The system of claim 35, wherein the ranker accelerates the convergence of the iterative numerical procedure in obtaining connectivity rank scores.
 50. The system of claim 35, wherein the ranker calculates rank values by dividing the pages into distinct number of groups.
 51. The system of claim 35, further comprising a rate controller to control the rate of request for page retrieval.
 52. The system of claim 35, wherein the Web page database stores the pages in a fixed record large enough to contain a predetermined percentage of all of the pages, wherein if the page is smaller, the fixed record has some empty space, and if the page is larger, the Web page database stores as much of the page as possible in the fixed record and the rest in a record file. 